package org.jsola.hr.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.entity.BaseDeleteDO;
import org.jsola.core.entity.Key;

import java.util.Date;
import javax.persistence.Table;

/**
 * 人力定时任务
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "hr_task")
@Key(UUID = true)
public class TaskDO extends BaseDeleteDO<String> {

    private static final long serialVersionUID = 1L;

    /**
     * 业务类型
     */
    private String subjectType;
    /**
     * 业务id
     */
    private String subjectId;
    /**
     * 描述，简介
     */
    private String description;
    /**
     * 执行定时任务的的beanName
     */
    private String runBeanName;
    /**
     * 定时任务运行时间
     */
    private Date runDate;
    /**
     * 运行方式,由各部分定时任务实现自己用
     */
    private String runType;
    /**
     * 定时任务运行参数，json字符串
     */
    private String runParam;
    /**
     * 定时任务状态(0:未执行,1:已执行)
     */
    private Boolean status;



}

